package com.mojian.vo.resource;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;
import java.math.BigDecimal;

@Data
@ApiModel(value = "资源下载视图对象")
public class ResourceDownloadVo {

    @ApiModelProperty(value = "下载ID")
    private Long id;

    @ApiModelProperty(value = "资源ID")
    private Long resourceId;

    @ApiModelProperty(value = "资源名称")
    private String name;

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @ApiModelProperty(value = "资源类型：1-免费，2-积分，3-付费")
    private Integer type;

    @ApiModelProperty(value = "积分")
    private Integer points;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "下载时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime downloadTime;
} 